/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

/**
 *
 * @author Antoine
 * Stores the correspondence between a form field and an attribute from a formal concept
 */
public class Correspondence {
    
    private FormField field;
    private FormalConcept formalConceptRelated;
    private Attribute attribute;
    private String operator; // what links the field and the attriubute. For us it will always be " = "
    private String operator_1; // op-1, inverse operation, for us it will always be " = "
    
    public Correspondence(FormalConcept fc, Attribute att) {
        formalConceptRelated = fc;
        attribute = att;
    }
    
    public Correspondence(FormField field, FormalConcept fc, Attribute att) {
        this(fc, att);
        this.field = field;
    }

    public Attribute getAttribute() {
        return attribute;
    }

    public void setAttribute(Attribute attribute) {
        this.attribute = attribute;
    }

    public FormField getField() {
        return field;
    }

    public void setField(FormField field) {
        this.field = field;
    }

    public FormalConcept getFormalConceptRelated() {
        return formalConceptRelated;
    }

    public void setFormalConceptRelated(FormalConcept formalConceptRelated) {
        this.formalConceptRelated = formalConceptRelated;
    }


     public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOperator_1() {
        return operator_1;
    }

    public void setOperator_1(String operator_1) {
        this.operator_1 = operator_1;
    }
    
}
